using System;

namespace Mbs.Messaging
{
    [Serializable]
    public class FilterEventArgs<TMessage>
    {
        public object Sender { get; private set; }
        public TMessage Message { get; private set; }
        public bool Ignored { get; set; }
        public object Receiver { get; set; }

        public FilterEventArgs(object sender, TMessage message)
        {
            Sender = sender;
            Message = message;
            Ignored = false;
        }
    }
}
